#pragma once

#include "../../service.h"
#include "../gateServer.h"

class Gateway;

class Login : public Service
{
	enum State
	{
		STATE_START = 0,
		STATE_LOGIN,
		STATE_KICKOUT,
		STATE_END,
	};

public:

	Login();
	virtual ~Login();

	virtual void Update();

private:

	void SetState(State state);
	inline void SetNextState(State state){ m_nextState = state;};

private:

	State m_state;
	State m_nextState;

	LoginResult	m_loginResult;
};

CREATE_SERVICE(Login);